//
//  PageController.m
//  UIPageControl+UIScrollView
//
//  Created by 王恕 on 16/1/21.
//  Copyright © 2016年 王恕. All rights reserved.
//

#import "PageController.h"

@interface PageController ()

@end

@implementation PageController

- (id) initwithPageNumber:(NSInteger)pageNumber{

    self.label = [[UILabel alloc] initWithFrame:CGRectMake(260, 10, 60, 30)];
    self.label.backgroundColor = [UIColor clearColor];
    self.label.textColor = [UIColor redColor];
    self.label.text = [NSString stringWithFormat:@"第[%ld]页",pageNumber + 1];
    [self.view addSubview:self.label];
    
    self.imageLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, self.view.frame.size.width, 60)];
    self.imageLabel.textAlignment = NSTextAlignmentCenter;
    self.imageLabel.numberOfLines = 2;
    self.imageLabel.font = [UIFont systemFontOfSize:24];
    self.imageLabel.backgroundColor = [UIColor blueColor];
    [self.view addSubview:self.imageLabel];
    
    
    self.myImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 90, self.view.frame.size.width, 580)];
    [self.view addSubview:self.myImage];
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
